import { createSlice } from '@reduxjs/toolkit'
import dayjs from 'dayjs'
export const ticketSlice = createSlice({
  name: 'ticket',
  initialState: {
    from:'北京',
    to:'上海',
    date:dayjs().format('YYYY-MM-DD'),
    isSpeed:false
  },
  reducers: {
    
  },
})

// Action creators are generated for each case reducer function
export const { increment, decrement, incrementByAmount } = ticketSlice.actions

export default ticketSlice.reducer